package com.liaoze.stockmgt.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liaoze.stockmgt.dao.UserDao;
import com.liaoze.stockmgt.model.UUser;
import com.liaoze.stockmgt.service.UserService;

@Service  
public class UserServiceImpl implements UserService {

    @Autowired  
    private UserDao userDao;  

    public UUser selectUserById(Integer userId) {  
        return userDao.selectUserById(userId);  
    }

	@Override
	public UUser findUserByEmail(String email) {
		return userDao.findUserByEmail(email);
	}

	@Override
	public UUser userInsert(UUser entity) {
		userDao.userInsert(entity);
		return entity;
	}  
}